<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页面</title>
</head>
<body bgcolor="#fff0f5">
<h2 align="center">欢迎来到主页面！</h2>
<!--
关闭csrf防护 用get
开启csrf防护 用post 需要提交csrftoken
-->
<a href="/logout">退出登录</a><br>
<form action="/logout" method="post">
    <input type="hidden" th:name="${_csrf.parameterName }" th:value="${_csrf.token }"/>
    <input type="submit" value="退出登录">
</form>
<a href="child/child1" methods="post">子页面1</a>
<a href="child/child2">子页面2</a>
<a href="child/child3">子页面3</a>
</body>
</html>
